package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mapper.ProcessInstanceMapper;
import com.model.ProcessInstanceVO;

@Service("processInstanceService")
public class ProcessInstanceServiceImpl implements ProcessInstanceService {
    
    @Autowired
    private ProcessInstanceMapper processInstanceMapper;
    
    @Override
    public List<ProcessInstanceVO> listAllProcessInstance() {
        return processInstanceMapper.listAllProcessInstance();
    }

    @Override
    public int insert(ProcessInstanceVO insert) {
        return processInstanceMapper.insert(insert);
    }

    @Override
    public int update(ProcessInstanceVO update) {
        return processInstanceMapper.update(update);
    }

}
